package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 设备保养历史记录管理对象 maintenance_records
 *
 * @author ruoyi
 * @date 2025-03-19
 */
public class MaintenanceRecords extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 保养记录唯一标识
     */
    private Long recordId;

    /**
     * 保养记录编号
     */
    @Excel(name = "保养记录编号")
    private String recordCode;

    /**
     * 设备编号
     */
    @Excel(name = "设备编号")
    private String equipmentNo;

    /**
     * 设备名称
     */
    @Excel(name = "设备名称")
    private String equipmentName;

    /**
     * 保养执行时间
     */
    @Excel(name = "保养执行时间")
    private String maintenanceTime;

    /**
     * 保养状态（完成、进行中、未开始）
     */
    @Excel(name = "保养状态", readConverterExp = "完=成、进行中、未开始")
    private String status;

    public void setRecordId(Long recordId) {
        this.recordId = recordId;
    }

    public Long getRecordId() {
        return recordId;
    }

    public void setRecordCode(String recordCode) {
        this.recordCode = recordCode;
    }

    public String getRecordCode() {
        return recordCode;
    }

    public void setEquipmentNo(String equipmentNo) {
        this.equipmentNo = equipmentNo;
    }

    public String getEquipmentNo() {
        return equipmentNo;
    }

    public void setEquipmentName(String equipmentName) {
        this.equipmentName = equipmentName;
    }

    public String getEquipmentName() {
        return equipmentName;
    }

    public void setMaintenanceTime(String maintenanceTime) {
        this.maintenanceTime = maintenanceTime;
    }

    public String getMaintenanceTime() {
        return maintenanceTime;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("recordId", getRecordId())
                .append("recordCode", getRecordCode())
                .append("equipmentNo", getEquipmentNo())
                .append("equipmentName", getEquipmentName())
                .append("maintenanceTime", getMaintenanceTime())
                .append("status", getStatus())
                .append("remark", getRemark())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .toString();
    }
}
